package com.mi.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mi.system.dto.query.DictQueryDTO;
import com.mi.system.entity.Dict;
import com.mi.system.vo.DictVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * Dict mapper
 *
 * @author jin_huaquan
 * @version 1.0
 * @date 2021/11/1 13:47
 */
@Mapper
public interface DictMapper extends BaseMapper<Dict> {

    /**
     * list dict
     *
     * @param page  page info
     * @param query query params
     * @return dict list
     */
    Page<DictVO> selectByPage(Page page, @Param("query") DictQueryDTO query);
}
